cmake_minimum_required(VERSION 3.16)
project(http)

if(NOT CMAKE_BUILD_TYPE)
  set(default_build_type "Debug")
  message(STATUS "Set the build type to `${default_build_type}` as none was specified.")
  set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Chooce the build type." FORCE)
  set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
  "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
message(STATUS "http Build Type: ${CMAKE_BUILD_TYPE}")


# Set the version for http
set(http_Version_Major 0)
set(http_Version_Minor 1)
set(http_Version_Patch 0)
set(http_Version_Status "-dev")
set(PROJECT_VERSION
  "${http_Version_Major}.${http_Version_Minor}.${http_Version_Patch}${http_Version_Status}"
)
message(STATUS "${PROJECT_NAME} version: ${PROJECT_VERSION}")



add_executable(http main.cc)
find_package(CURL REQUIRED)

target_include_directories(
  http
  PUBLIC ${CURL_INCLUDE_DIRS}
)

target_link_libraries(
  http
  ${CURL_LIBRARIES}
)
